package com.aaa.sbms.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * 跳转页面
 */
@RestController
@RequestMapping("jump")
public class JumpController {

    @RequestMapping("toNew")
    public Map toNew(){
        Map map = new HashMap();
        map.put("jumpPath","/html/front/new.html");
        return map;
    }

    @RequestMapping("aboutMe")
    public Map aboutMe(){
        Map map = new HashMap();
        map.put("jumpPath","/html/front/aboutMe.html");
        return map;
    }

    @RequestMapping("toRecruit")
    public Map toRecruit(){
        Map map = new HashMap();
        map.put("jumpPath","/html/front/recruit.html");
        return map;
    }

    @RequestMapping("toLeave")
    public Map toLeave(){
        Map map = new HashMap();
        map.put("jumpPath","/html/front/leave.html");
        return map;
    }

    @RequestMapping("toPro")
    public Map toPro(){
        Map map = new HashMap();
        map.put("jumpPath","/html/front/pro.html");
        return map;
    }

    @RequestMapping("toDor")
    public Map toDor(){
        Map map = new HashMap();
        map.put("jumpPath","/html/front/dor.html");
        return map;
    }

    @RequestMapping("toSal")
    public Map toSal(){
        Map map = new HashMap();
        map.put("jumpPath","/html/front/sal.html");
        return map;
    }

    @RequestMapping("toEmail")
    public Map toEmail(){//跳转到邮箱页面
        Map map = new HashMap();
        map.put("jumpPath","/html/front/email.html");
        return map;
    }

    @RequestMapping("toDisk")
    public Map toDisk(){//跳转到云盘页面
        Map map = new HashMap();
        map.put("jumpPath","/html/front/disk.html");
        return map;
    }

    @RequestMapping("toQuit")
    public Map toQuit(){
        Map map = new HashMap();
        map.put("jumpPath","/html/front/quit.html");
        return map;
    }

    @RequestMapping("toTrain")
    public Map toTrain(){
        Map map = new HashMap();
        map.put("jumpPath","/html/front/train.html");
        return map;
    }

    @RequestMapping("toCar")
    public Map toCar(){
        Map map = new HashMap();
        map.put("jumpPath","/html/front/car.html");
        return map;
    }
}
